﻿<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>日志列表</title>
<link rel="stylesheet" type="text/css" href="<s:property value="staticsRoot"/>/css/style.css"/>
<script type="text/javascript" src="<s:property value="staticsRoot"/>/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="<s:property value="staticsRoot"/>/js//My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $(".data tr:odd").css("background","#fff");
});
</script>
</head>

<body id="user_mag">
<div class="right">
	<h3 class="title box">
    	当前位置：k吧后台管理&nbsp;&gt;&gt;&nbsp;日志管理&nbsp;&gt;&gt;&nbsp;列表
    </h3>
    <form name="form1" id="form1" action="logList.html" method="post">
    <table cellpadding="0" cellspacing="0" width="60%" class="table_top box">
    	<tr>
        	<td width="20%" align="right">日志类型：</td>
            <td width="30%">
            <select class="select" name="logType">
                	<option value="0" <s:if test='logType == 0 || logType == null'>selected="selected"</s:if>>吧</option>
                	<option value="1" <s:if test='logType == 1'>selected="selected"</s:if>>帖子</option>
                	<option value="2" <s:if test='logType == 2'>selected="selected"</s:if>>其他</option>
            </select>
            </td>
            <td width="20%" align="right">操作类型：</td>
            <td>
            <select class="select" name="optType">
                	<option value="" <s:if test='optType == "" || optType == null'>selected="selected"</s:if>>全部</option>
                	<option value="1" <s:if test='optType == 1'>selected="selected"</s:if>>加精</option>
                	<option value="2" <s:if test='optType == 2'>selected="selected"</s:if>>置顶</option>
                	<option value="3" <s:if test='optType == 3'>selected="selected"</s:if>>锁定</option>
                	<option value="4" <s:if test='optType == 4'>selected="selected"</s:if>>删除</option>
                	<option value="5" <s:if test='optType == 5'>selected="selected"</s:if>>取消加精</option>
                	<option value="6" <s:if test='optType == 6'>selected="selected"</s:if>>取消置顶</option>
                	<option value="7" <s:if test='optType == 7'>selected="selected"</s:if>>取消锁定</option>
                	<option value="8" <s:if test='optType == 8'>selected="selected"</s:if>>取消删除</option>
                	<option value="9" <s:if test='optType == 9'>selected="selected"</s:if>>创建对象</option>
                	<option value="10" <s:if test='optType == 10'>selected="selected"</s:if>>修改对象</option>
                	<option value="11" <s:if test='optType == 11'>selected="selected"</s:if>>删除对象</option>
            </select>
            </td>
        </tr>
        <tr>
        	<td width="20%" align="right">用户ID：</td>
            <td width="30%">
            <input type="text" class="i_text" name="userId" value="<s:property value='userId' />"/>
            </td>
        	<td width="20%" align="right">吧ID：</td>
            <td>
            <input type="text" class="i_text" name="barId" value="<s:property value='barId' />"/>
            </td>
        </tr>
        <tr>
        	<td width="20%" align="right">开始时间ID：</td>
            <td width="30%"> 
            <input type="text" name="beginTime" class="Wdate" onclick="WdatePicker()" value="<s:property value='beginTime' />"/>
            </td>
        	<td width="20%" align="right">结束时间：</td>
            <td>
            <input type="text" name="endTime" class="Wdate" onclick="WdatePicker()" value="<s:property value='endTime' />"/>
            </td>
        </tr>
        <tr>
            <td align="center" olspan="4">
            	<div class="lit_btn">
                    <a href="#" onclick="query()">查&nbsp;询</a>
                </div>
            </td>
        </tr>
    </table>
    <table cellpadding="0" cellspacing="0" width="100%" class="data">
    	<tr>
        	<td width="10%" height="29" align="center">用户ID</td>
            <td width="10%" align="center">吧ID</td>
            <td width="10%" align="center">操作对象ID</td>
            <td width="25%" align="center">操作对象名称</td>
            <td width="10%" align="center">日志类型</td>
            <td width="10%" align="center">操作类型</td>
            <td width="10%" align="center">操作备注</td>
            <td width="15%" align="center">创建时间</td>
        </tr>
        <s:iterator value="list" var="log">
        	<tr>
	        	<td height="29"><s:property value="#log.userId"/></td>
	            <td><s:property value="#log.barId" /></td>
	            <td><s:property value="#log.targetId"/></td>
	            <td><s:property value="#log.targetName"/></td>
	            <td><s:property value="#log.logTypeStr"/></td>
	            <td><s:property value="#log.optTypeStr"/></td>
	            <td><s:property value="#log.opComment"/></td>
	            <td><s:date name="#log.createTime" format="yyyy-MM-dd HH:mm:ss" /> </td>
        	</tr>
        </s:iterator>
    </table>
    <%@include file="page.jsp" %>
    </form>
</div>

<script type="text/javascript">
	function query(){
		$("#form1").submit();
	}
	function doSearch(pageNumber){
		if(pageNumber <= 0){
			pageNumber = 1;
		}	
		$("#page").val(pageNumber); 
		$("#form1").submit(); 
	}
</script>
</body>
</html>
